package com.woniuxy.bank_b.service.impl;


import com.woniuxy.bank_b.mapper.BankbMapper;
import com.woniuxy.bank_b.service.BankbService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.Resource;

/**
 * @author: 15489  <br/>
 * Date: 2022/4/1:10:07  <br/>
 * Description:
 */
@Service
public class BankbServiceImpl implements BankbService {
    @Resource
    private BankbMapper bankbMapper;

    @Override
    public int update(@PathVariable("id") int id, @PathVariable("money") int money) {
//        1:调用对方的接口 先让对方操作

//        2：根据对方的结果 决定当前微服务的操作

        return bankbMapper.update(id, money);
    }
}
